
keep if sample==1

foreach v of global binary_flexible { 
	display in red "`v'"
	qui reg `v' i.treatment##i.time $ControlsA, vce(cluster agency)
		est store `v'_CA
	qui reg `v' i.treatment##i.time $ControlsB, vce(cluster agency)
		est store `v'_CB
}

#delimit ;
global Note_Table_E2 "
{\begin{minipage}{1.52\textwidth}
\small  
\vspace{0.2cm} 
\textit{Notes:} * p $math < $math 0.10, ** p $math < $math 0.05, *** p $math < $math 0.01. Standard errors clustered by agency are shown in parentheses. Control variables in odd columns include: month in which the agency received the request, the total number of requests received by the agency before the intervention (Jan 1, 2017 until Sept. 5, 2018), average percentage of pending requests (not past the deadline - Mean of \% Pending Pre) before the intervention, and the average percentage of late requests prior to the intervention (Mean of \% Backlog Pre). In addition to those, controls in even columns also include the type of requester, serial requesters, topic of the request, total number of requests received by the agency on the date request \$ i \$ arrived, and ministry of the agency.
 \end{minipage}
 }
";
#delimit cr

esttab business_days_15_CA business_days_15_CB business_days_141516_CA business_days_141516_CB business_days_25_CA business_days_25_CB business_days_242526_CA business_days_242526_CB using "$Tables/Table_E2.tex", replace  label  b(%5.3f) se(%5.3f) star(* 0.10 ** 0.05 *** 0.01) mlabels("Replied in 15 bd" "Replied in 15 bd" "Replied in 14/15/16 bd" "Replied in 14/15/16 bd" "Replied in 25 bd" "Replied in 25 bd" "Replied in 24/25/26 bd" "Replied in 24/25/26 bd") refcat(1.treatment "\vspace{-6mm}", nolabel) stats(N r2,  labels(`"Observations"' `"R-squared"', prefix(\addlinespace[3pt])) fmt(%10.0fc %10.3fc 0 0) )  coeflabels($labels)  addnote($Note_Table_E2)  keep(1.treatment 1.time 1.treatment#1.time) order(1.treatment 1.time) nonumber nonote compress noomitted nobaselevels 
